package main

import (
	"flag"
	"signaling/src/framework"
	"signaling/src/glog"
)

func main() {
	flag.Parse()

	err := framework.Init("./conf/framework.conf")
	if err != nil {
		panic(err)
	}
	framework.RegisterStaticUrl()
	glog.Info("hello worldrrrrrrrrr")
	glog.Debug("hello worldttttttttt")
	glog.Flush()
	go startHttp()
	startHttps()
}

func startHttp() {
	err := framework.StartHttp()
	if err != nil {
		panic(err)
	}
}
func startHttps() {
	err := framework.StartHttps()
	if err != nil {
		panic(err)
	}
}
